package com.rivulet.dawn.api.common;

import lombok.Data;

@Data
public class CommonSearchRequest {
    /**
     * 页码
     */
    private int pageNumber = 1;
    /**
     * 页大小
     */
    private int pageSize = 10;
    private int totalCount;
    private int totalPages;
    private String order = "desc";
    private String orderBy = "id";
    private int offset;

    public int getOffset() {
        return (pageNumber-1) * pageSize;
    }
}
